import { CoolController, BaseController, TagTypes, CoolUrlTag } from '@cool-midway/core';
import { LayoutEntity } from '../../entity/layout';

@CoolUrlTag({
    key: TagTypes.IGNORE_TOKEN,
    value: ['list'],
})
@CoolController({
  api: ['list'],
  entity: LayoutEntity,
  listQueryOp: {
    where: () => {
      return [['a.isVisible = :isVisible', { isVisible: 1 }]];
    },
  },
})
export class AppLayoutController extends BaseController {}
